﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">


    <div>
        登录成功:
        <%: ViewData["user"] %>     &nbsp;&nbsp;<a href="/logout">注销</a>
        <br />
        用户属性：<br />
        <table>
            <%
                foreach (var item in (Dictionary<string, string>)ViewData["userAttrs"])
                { %>
            <tr>
                <td>
                    <%=item.Key %>
                </td>
                <td>
                    <%=item.Value %>
                </td>
            </tr>
            <%    
     }
            %>
        </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        UserInfo</h2>
</asp:Content>
